package com.tqjc.system.common.entity.VO;

import lombok.Getter;

import javax.swing.*;
import javax.swing.border.Border;
import java.awt.*;

/**
 * @author 86195
 * @version 1.0
 * @description 实时画面UI对象
 * @date 2023/11/2 9:39
 */
@Getter
public class VideoVO extends JFrame {

    JPanel jPanel_cam1;
    JPanel jPanel_cam2;
    Panel panel_video1;
    Panel panel_video2;
    Panel panel_video3;
    Panel panel_video4;
    Panel panel_video5;
    Panel panel_video6;
    JLabel jLabel_text1, jLabel_text2,jLabel_text3,jLabel_text4,jLabel_text5,jLabel_text6;




    public VideoVO() {

        setTitle("道闸实时画面");
        setLayout(null);
        setVisible(true);
        setBounds(50, 50, 880, 830);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        jPanel_cam1 = new JPanel();
        jPanel_cam1.setBounds(20, 40, 410, 725);
        jPanel_cam1.setBorder(BorderFactory.createLineBorder(Color.LIGHT_GRAY));

        jPanel_cam2 = new JPanel();
        jPanel_cam2.setBounds(440, 40,  410 ,725);
        jPanel_cam2.setBorder(BorderFactory.createLineBorder(Color.LIGHT_GRAY));



        add(jPanel_cam1);
        add(jPanel_cam2);


        /****************************camera2********************************/

        jPanel_cam2.setLayout(null);


        jLabel_text2 = new JLabel("道闸1入口右");
        jLabel_text2.setBounds(10, 10, 100, 15);
        panel_video2 = new Panel();
        panel_video2.setBounds(10, 30, 390, 210);
        panel_video2.setBackground(Color.lightGray);


        jLabel_text4 = new JLabel("道闸1出口右");
        jLabel_text4.setBounds(10, 245, 100, 15);

        panel_video4 = new Panel();
        panel_video4.setBounds(10, 265, 390, 210);
        panel_video4.setBackground(Color.lightGray);

        jLabel_text6 = new JLabel("道闸2出口");
        jLabel_text6.setBounds(10, 480, 100, 15);
        panel_video6 = new Panel();
        panel_video6.setBounds(10, 500, 390, 210);
        panel_video6.setBackground(Color.lightGray);

        jPanel_cam2.add(jLabel_text2);
        jPanel_cam2.add(jLabel_text4);
        jPanel_cam2.add(jLabel_text6);
        jPanel_cam2.add(panel_video2);
        jPanel_cam2.add(panel_video4);
        jPanel_cam2.add(panel_video6);


        /****************************camera1********************************/
        jPanel_cam1.setLayout(null);

        jLabel_text1 = new JLabel("道闸1入口左");
        jLabel_text1.setBounds(10, 10, 100, 15);
        panel_video1 = new Panel();
        panel_video1.setBounds(10, 30, 390, 210);
        panel_video1.setBackground(Color.lightGray);


        jLabel_text3 = new JLabel("道闸1出口左");
        jLabel_text3.setBounds(10, 245, 100, 15);

        panel_video3 = new Panel();
        panel_video3.setBounds(10, 265, 390, 210);
        panel_video3.setBackground(Color.lightGray);

        jLabel_text5 = new JLabel("道闸2入口");
        jLabel_text5.setBounds(10, 480, 100, 15);
        panel_video5 = new Panel();
        panel_video5.setBounds(10, 500, 390, 210);
        panel_video5.setBackground(Color.lightGray);

        jPanel_cam1.add(panel_video1);
        jPanel_cam1.add(panel_video3);
        jPanel_cam1.add(panel_video5);
        jPanel_cam1.add(jLabel_text1);
        jPanel_cam1.add(jLabel_text3);
        jPanel_cam1.add(jLabel_text5);
        setVisible(true);
    }


}
